using System;
using System.Collections.Generic;
using System.Text;

namespace StockTrader.DAL.HoseAdapter.FileParser.Structure
{
    public sealed class Froom
    {
        private Int32 mStockNo;
        [FieldLength(4)]
        public Int32 StockNo
        {
            get { return mStockNo; }
            set { mStockNo = value; }
        }

        private Double mTotalRoom;
        [FieldLength(8)]
        public Double TotalRoom
        {
            get { return mTotalRoom; }
            set { mTotalRoom = value; }
        }

        private Double mCurrentRoom;
        [FieldLength(8)]
        public Double CurrentRoom
        {
            get { return mCurrentRoom; }
            set { mCurrentRoom = value; }
        }
    }

    public sealed class FroomInfo
    {
        private Int32 mStockNo;
        public Int32 StockNo
        {
            get { return mStockNo; }
            set { mStockNo = value; }
        }

        private double mTotalRoom;
        public double TotalRoom
        {
            get { return mTotalRoom; }
            set { mTotalRoom = value; }
        }

        private double mCurrentRoom;
        public double CurrentRoom
        {
            get { return mCurrentRoom; }
            set { mCurrentRoom = value; }
        }

        private int mBuy;
        public int Buy
        {
            get { return mBuy; }
            set { mBuy = value; }
        }

        private int mSell;
        public int Sell
        {
            get { return mSell; }
            set { mSell = value; }
        }

        public FroomInfo(){}

        public FroomInfo(int stockno, double totalroom, double currentroom, int buy, int sell)
        {
            this.mStockNo = stockno;
            this.mTotalRoom = totalroom;
            this.mCurrentRoom = currentroom;
            this.mBuy = buy;
            this.mSell = sell;
        }
    }

}
